package cn.mjnxin.charge.model.entity;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_discuss_list:我的管理表
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoDiscussList implements Serializable {
    /**
     * id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="id")
    private Integer id;

    /**
     * 0 为讨论 1 为投票
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="0 为讨论 1 为投票")
    private Integer typeId;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="创建时间")
    private Date createTime;

    /**
     * 访问数量
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="访问数量")
    private Integer visitNum;

    /**
     * 标题
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="标题")
    private String title;

    /**
     * 内容
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="内容")
    private String content;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="用户id")
    private Integer discussUserId;

    /**
     * 投票id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="投票id")
    private Integer voteId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getVisitNum() {
        return visitNum;
    }

    public void setVisitNum(Integer visitNum) {
        this.visitNum = visitNum;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getDiscussUserId() {
        return discussUserId;
    }

    public void setDiscussUserId(Integer discussUserId) {
        this.discussUserId = discussUserId;
    }

    public Integer getVoteId() {
        return voteId;
    }

    public void setVoteId(Integer voteId) {
        this.voteId = voteId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", typeId=").append(typeId);
        sb.append(", createTime=").append(createTime);
        sb.append(", visitNum=").append(visitNum);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", discussUserId=").append(discussUserId);
        sb.append(", voteId=").append(voteId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoDiscussList other = (DemoDiscussList) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getVisitNum() == null ? other.getVisitNum() == null : this.getVisitNum().equals(other.getVisitNum()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getDiscussUserId() == null ? other.getDiscussUserId() == null : this.getDiscussUserId().equals(other.getDiscussUserId()))
            && (this.getVoteId() == null ? other.getVoteId() == null : this.getVoteId().equals(other.getVoteId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getVisitNum() == null) ? 0 : getVisitNum().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getDiscussUserId() == null) ? 0 : getDiscussUserId().hashCode());
        result = prime * result + ((getVoteId() == null) ? 0 : getVoteId().hashCode());
        return result;
    }
}